package com.yenlien.traceyun.plant.entity;

import com.yenlien.traceyun.business.entity.TraceEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Lob;
import javax.persistence.Table;

/**
 * Created by LiuSha on 2020/7/28.
 * 订单明细
 */
@Entity
@Table(name = "t_plant_order_detailed")
public class OrderDetailed extends TraceEntity {
    @Column
    private String storageId;//库存Id
    @Column
    private String orderId;//订单Id
    @Column
    private String warehouseName;//仓位名称
    @Column
    private String name;//产品名称
    @Column
    private String specs;//规格
    @Column
    private String batch;//批号
    @Column
    private String number;//数量
    @Column
    private String unit;//单位
    @Column
    private String price;//单价（元）
    @Column
    private String totalPrice;//小计（元）
    @Column
    private String driver; //司机
    @Column
    private String carCode; //车牌
    @Column
    private String phone; //联系电话
    @Column
    private String logistics; //物流
    @Column
    private String logisticsCode; //物流单号
    @Lob
    @Column
    private String traceCode; //追溯码
    @Column
    private int isOut;//是否出库(1:出库；0：未出库)

    public String getWarehouseName() {
        return warehouseName;
    }

    public void setWarehouseName(String warehouseName) {
        this.warehouseName = warehouseName;
    }

    public String getDriver() {
        return driver;
    }

    public void setDriver(String driver) {
        this.driver = driver;
    }

    public String getCarCode() {
        return carCode;
    }

    public void setCarCode(String carCode) {
        this.carCode = carCode;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public int getIsOut() {
        return isOut;
    }

    public void setIsOut(int isOut) {
        this.isOut = isOut;
    }

    public String getTraceCode() {
        return traceCode;
    }

    public void setTraceCode(String traceCode) {
        this.traceCode = traceCode;
    }

    public String getLogistics() {
        return logistics;
    }

    public void setLogistics(String logistics) {
        this.logistics = logistics;
    }

    public String getLogisticsCode() {
        return logisticsCode;
    }

    public void setLogisticsCode(String logisticsCode) {
        this.logisticsCode = logisticsCode;
    }

    public String getStorageId() {
        return storageId;
    }

    public void setStorageId(String storageId) {
        this.storageId = storageId;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSpecs() {
        return specs;
    }

    public void setSpecs(String specs) {
        this.specs = specs;
    }

    public String getBatch() {
        return batch;
    }

    public void setBatch(String batch) {
        this.batch = batch;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(String totalPrice) {
        this.totalPrice = totalPrice;
    }
}
